package com.tz.hotelmanager.domain;

import java.util.Date;

import com.alibaba.fastjson.JSONObject;

public class Bill {
    private Integer id;

    private Date createtime;

    private Date checkouttime;

    private Double total;

    private String billstate;

    private Integer houseid;

    private Integer userid;

    @Override
    public String toString() {
      
      JSONObject jsonObject= new JSONObject();
      jsonObject.put("id", getId());
      jsonObject.put("createtime", getCreatetime());
      jsonObject.put("total", getTotal());
      jsonObject.put("billstate", getBillstate());
      jsonObject.put("houseid", getHouseid());
      jsonObject.put("userid", getUserid());
      return jsonObject.toJSONString();
    }
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getCheckouttime() {
        return checkouttime;
    }

    public void setCheckouttime(Date checkouttime) {
        this.checkouttime = checkouttime;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public String getBillstate() {
        return billstate;
    }

    public void setBillstate(String billstate) {
        this.billstate = billstate == null ? null : billstate.trim();
    }

    public Integer getHouseid() {
        return houseid;
    }

    public void setHouseid(Integer houseid) {
        this.houseid = houseid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }
}